#pragma once

#include "VideoPage.h"

#include <QVideoWidget>
#include <QMenu>
#include <QContextMenuEvent>
#include <QDropEvent>
#include <QDragEnterEvent>
#include <QDragMoveEvent>
#include <QDragLeaveEvent>

class VideoPage;

class MyVideoWidget : public QVideoWidget
{
	Q_OBJECT

public:
	MyVideoWidget(VideoPage *page, QMenu *playMenu, QWidget *parent = nullptr);

public slots:
	void contextMenuEvent(QContextMenuEvent *event) override;

private:
	QMenu *playMenu;
	VideoPage *page;
};

